<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>jQuery购物车模块之全选</title>
    <link rel="stylesheet" href="./css/reset.css">
    <link rel="stylesheet" href="./css/index.css">
    <script src="../jquery/jquery.v3.7.1.js"></script>
    <script src="./index.js"></script>
</head>
<body>
    <div class="wrap">
        <div class="cart-wrap">
            <div class="cart-head">
                <div class="t-checkbox">
                    <input type="checkbox" name="" id="" class="checkbox">全选
                </div>
                <div class="t-goods">商品</div>
                <div class="t-price">单价</div>
                <div class="t-num">数量</div>
                <div class="t-sum">小计</div>
                <div class="t-action">操作</div>
            </div>
            <div class="cart-item-list">
                <div class="cart-item check-cart-item">
                    <div class="p-checkbox">
                        <input type="checkbox" name="" id="" class="j-checkbox">
                    </div>
                    <div class="p-goods">
                        <div class="p-img">
                            <img src="../image/1.jpg" alt="">
                        </div>
                        <div class="p-msg">【5本26元】经典儿童文学彩图青少版八十天环游地球中学生语文教材</div>
                    </div>
                    <div class="p-price">￥12.60</div>
                    <div class="p-num">
                        <div class="quantity-form">
                            <a href="javascript:;" class="decrement" style="font-weight:bold">-</a>
                            <input type="number" class="itxt" value="1">
                            <a href="javascript:;" class="increment" style="font-weight: bold;">+</a>
                        </div>
                    </div>
                    <div class="p-sum">￥12.60</div>
                    <div class="p-action"><a href="javascript:;">删除</a></div>
                </div>
                <div class="cart-item check-cart-item">
                    <div class="p-checkbox">
                        <input type="checkbox" name="" id="" class="j-checkbox">
                    </div>
                    <div class="p-goods">
                        <div class="p-img">
                            <img src="../image/1.jpg" alt="">
                        </div>
                        <div class="p-msg">【2000张贴纸】贴纸书3-6岁 贴画儿童 贴画书全套12册 贴画贴纸儿童。。。</div>
                    </div>
                    <div class="p-price">￥12.60</div>
                    <div class="p-num">
                        <div class="quantity-form">
                            <a href="javascript:;" class="decrement" style="font-weight:bold">-</a>
                            <input type="number" class="itxt" value="1">
                            <a href="javascript:;" class="increment" style="font-weight: bold;">+</a>
                        </div>
                    </div>
                    <div class="p-sum">￥12.60</div>
                    <div class="p-action"><a href="javascript:;">删除</a></div>
                </div>
                <div class="cart-item check-cart-item">
                    <div class="p-checkbox">
                        <input type="checkbox" name="" id="" class="j-checkbox">
                    </div>
                    <div class="p-goods">
                        <div class="p-img">
                            <img src="../image/1.jpg" alt="">
                        </div>
                        <div class="p-msg">唐诗300首+成语故事全2册 一年级课外书 有注音儿童版 小学二三年级课外书阅读书籍</div>
                    </div>
                    <div class="p-price">￥12.60</div>
                    <div class="p-num">
                        <div class="quantity-form">
                            <a href="javascript:;" class="decrement" style="font-weight:bold">-</a>
                            <input type="number" class="itxt" value="1">
                            <a href="javascript:;" class="increment" style="font-weight: bold;">+</a>
                        </div>
                    </div>
                    <div class="p-sum">￥12.60</div>
                    <div class="p-action"><a href="javascript:;">删除</a></div>
                </div>
            </div>
            <div class="cart-floatbar">
                <div class="select-all">
                    <input type="checkbox" name="" id="" class="checkbox">全选
                </div>
                <div class="operation">
                    <a href="javascript:;" class="remove-batch">删除选中的商品</a>
                    <a href="javascript:;" class="clear-all">清理购物车</a>
                </div>
                <div class="toolbar-right">
                    <div class="amount-sum">已经选<em>1</em>件商品</div>
                    <div class="price-sum">总价：<em>￥12.60</em></div>
                    <div class="btn-area">去结算</div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>